﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Admin.ViewModels.BannerEditViewModel>" %>

<%@ Import Namespace="SDT.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    chi tiết banner
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
    chi tiết banner
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Toolbar" runat="server">
    <td>
        <%= Html.Toolbar("Quay về", "/Banner", "back") %>
        <%= Html.Toolbar("Thêm mới", "/Banner/Create/", "new")%>
	    <%= Html.Toolbar("Sửa", string.Format("/Banner/Edit/{0}", Model.Banner.ID), "edit")%>
        <%= Html.Toolbar("Xóa", string.Format("/Banner/Delete/{0}", Model.Banner.ID), "delete")%>
    </td>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
    <%= Html.ValidationSummary(true)%>
    <table class="adminlist" width="700px" align="center">
        <tbody>
        <tr>
            <td class="key">Tên banner</td>
            <td><%=Model.Banner.Name %></td>
        </tr>
            <tr>
                <td class="key">Ảnh banner</td>
                <td>
                   	<div>
				        <div class="div_img">
	                         <img class="represent" alt="<%=Model.Banner.Name %>" src="<%= string.Format("{0}{1}", Model.ImageRootUrl,""+Model.Banner.ID+"_"+ Model.Banner.ImagePath) %>" />
	                    </div>
				    </div>
                </td>
            </tr>
           <tr>
                <td class="key">File flash</td>
                <td>
                   	<div>
				        <div class="div_img">
	                         <img class="represent" alt="<%=Model.Banner.Name %>" src="<%= string.Format("{0}{1}", Model.FlashRootUrl,""+Model.Banner.ID+"_"+ Model.Banner.FlashPath) %>" />
	                    </div>
				    </div>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Ngày bắt đầu
                </td>
                <td>
                    <%= string.Format("{0:dd/MM/yyyy}",Model.Banner.FromDate)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Ngày kết thúc
                </td>
                <td>
                    <%= string.Format("{0:dd/MM/yyyy}",Model.Banner.ToDate)%>
                </td>
            </tr>
            <tr>
                <td class="key">Địa chỉ url</td>
                <td><a href="<%=Html.Encode(Model.Banner.UrlClick) %>"><%=Html.Encode(Model.Banner.UrlClick) %></a> </td>
            </tr>
            <tr>
                <td class="key">Số lượt click</td>
                <td><%=Html.Encode(Model.Banner.nClick) %></td>
            </tr>
            <tr>
                <td class="key">Trạng thái Publish</td>
                <td><%=Model.Banner.PubYN == true ? "Đã Publish" : "Chưa Publish" %></td>
            </tr>
            <tr>
                <td class="key">Độ ưu tiên</td>
                <td><%=Html.Encode(Model.Banner.Priority) %></td>
            </tr>
            <tr>
                <td class="key">Vị trí đặt banner</td>
                <td><%=Model.currentPosition.Name%></td>
            </tr>
            <tr>
                <td class="key">Banner thuộc menu</td>
                <td><%=Model.currentMenus.Name %></td>
            </tr>                                    
        </tbody>
    </table>
    <%
  } %>
</asp:Content>
